package day10.homework;

/**
 * 猫科类
 */
public class Felidae extends Animal{
    /** 猫 */
    private String cat;
    /** 老虎 */
    private String tiger;
    /** 狮子 */
    private String lion;
    public Felidae(){

    }
    public Felidae(String cat,String tiger,String lion){
        this.cat = cat;
        this.tiger = tiger;
        this.lion = lion;
    }
    public void varieties(){
        System.out.println("猫科有：" + this.cat + tiger + lion);
    }
    public String getCat(){
        return cat;
    }
    public void setCat(String cat){
        this.cat = cat;
    }
    public String getTiger(){
        return tiger;
    }
    public void setTiger(String tiger){
        this.tiger = tiger;
    }
    public String getLion(){
        return lion;
    }
    public void setLion(String lion){
        this.lion = lion;
    }

    public static void main(String[] args) {
        Cat0 cat0 = new Cat0("宠物猫");
        cat0.cute();
        Tiger0 tiger0 = new Tiger0("东北虎","华南虎");
        tiger0.alone();
        Lion0 lion0 = new Lion0("北美狮","非洲狮");
        lion0.gregarious();
    }
}
